package com.itany.shop.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @Author:石小俊
 * @Date: 2022/12/22 15:50
 * @Version:1.0-SNAPSHOT
 * @Description:
 */
@WebListener
public class TestSession2Listener implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
        System.out.println("正在创建session");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
        System.out.println("正在销毁session");
    }
}
